#include "binocular_camera.h"


void Binocular_camera::setModel(string _model)
{
    model=_model;
}

void Binocular_camera::setCamera(string _camera)
{
    camera=_camera;
}

void Binocular_camera::setRgb_frame_resolution(string _rgb_frame_resolution)
{
    rgb_frame_resolution=_rgb_frame_resolution;
}

void Binocular_camera::setRgv_fram_rate(int _rgb_frame_rate)
{
    rgb_frame_rate=_rgb_frame_rate;
}

void Binocular_camera::setFov(string _fov)
{
    fov=_fov;
}

void Binocular_camera::setDepth_fram_rate(int _depth_frame_rate)
{
    depth_frame_rate=_depth_frame_rate;
}



void Binocular_camera::print ()
{
    cout<< "双目摄像头"<<endl<<"a.型号："<< model<<endl<< "b.摄像头："<< camera<<endl
    << "c.RGB帧分辨率："<< rgb_frame_resolution<<endl<< "d.RGB帧率："<< rgb_frame_rate<<endl
    << "e.FOV："<< fov<<endl<< "f.深度帧率："<< depth_frame_rate<<endl;
}


void Binocular_camera::save (string path)
{
    ofstream ofs;// 创建流对象
    ofs.open(path, ios::out | ios::app);

    ofs<< "双目摄像头"<<endl<<"a.型号："<< model<<endl<< "b.摄像头："<< camera<<endl
    << "c.RGB帧分辨率："<< rgb_frame_resolution<<endl<< "d.RGB帧率："<< rgb_frame_rate<<endl
    << "e.FOV："<< fov<<endl<< "f.深度帧率："<< depth_frame_rate<<endl;

    ofs.close();
}
